import indexModel from '../../models/indexModel'

// 精品菜品
export const getSearchData = (kw = '') => dispatch => {
  indexModel.getSearchData(kw).then(ret => {
    dispatch({
      type: 'setSearchData',
      payload: ret
    })
  })
}

export const clearSearch = () => ({
  type: 'clearSearch'
})

export const disabledBtn = () => ({
  type: 'disabledBtn'
})